package io;

import java.io.*;

public class Test01 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("ppt_cp.pptx");
        BufferedInputStream bis=new BufferedInputStream(fis);

        FileOutputStream fos=new FileOutputStream("ppt_cp2.pptx");
        BufferedOutputStream bos=new BufferedOutputStream(fos);

        int d=0;
        while ((d=bis.read())!=-1){
            bos.write(d);
        }
        System.out.println("复制完毕");

        bis.close();
        bos.close();
    }
}
